import request from '@/utils/request'

// 查询订单取消原因列表
export function listCancelorderreason(query) {
  return request({
    url: '/service/cancelorderreason/list',
    method: 'get',
    params: query
  })
}

// 查询订单取消原因详细
export function getCancelorderreason(cancelorderreasonId) {
  return request({
    url: '/service/cancelorderreason/' + cancelorderreasonId,
    method: 'get'
  })
}

// 新增订单取消原因
export function addCancelorderreason(data) {
  return request({
    url: '/service/cancelorderreason',
    method: 'post',
    data: data
  })
}

// 修改订单取消原因
export function updateCancelorderreason(data) {
  return request({
    url: '/service/cancelorderreason',
    method: 'put',
    data: data
  })
}

// 删除订单取消原因
export function delCancelorderreason(cancelorderreasonId) {
  return request({
    url: '/service/cancelorderreason/' + cancelorderreasonId,
    method: 'delete'
  })
}
